package com.tea.Model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("goods_spec")
public class GoodsSpec{

    @TableId(type = IdType.AUTO)
    private Long id;
    //规格说明
    private String specRemark;
    //价格
    private BigDecimal price;
    //商品id
    private Long goodsId;
    //库存数量
    private Long stockNum;
    //逻辑删除字段 0-未删除 1-已删除
    @TableLogic
    private Integer deleted;

    private LocalDateTime createTime;
}